Skip to content

docs(readme): rewrite README as a user-first guide with verified quickstart - #21

Merged
colinjlacy merged 19 commits into
runtimeconditions:mainfrom
lasomethingsomething:rewrite-readme-user-first-quickstart
Nov 21, 2026
Merged

colinjlacy merged 19 commits into
runtimeconditions:mainfrom
lasomethingsomething:rewrite-readme-user-first-quickstart

Conversation

@lasomethingsomething

@lasomethingsomething lasomethingsomething commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Rewrites README.md so a fresh install can succeed without reading anything else, while keeping the maintainer/contributor content.

Adds docs/: generating profiles, language profilers, bindings, build-from-source (moved verbatim from the old README)
Adds CONTRIBUTING.md: build/test/PR workflow matching ci.yml`

Every command, flag, and error string was verified against a binary built from this branch plus live checks (brew tap, setup.sh, npm/PyPI, Go proxy). The quickstart was run end to end: rc profile validate rc-demos/artifacts/request-logger-http.profile.yaml → runtimeconditions: profile validated.

Known gap documented in the README: runtimeconditions.io/x/rc/env@v0.3.0 currently fails generate with dependency Go module archive SHA-256 mismatch.

Helped by Mistral Vibe.

…kstart

Reorients README.md so a fresh install succeeds without reading anything
else, while keeping the contributor/maintainer content:

- New order: what it is, install, commands, quickstart, generating a
  profile, command reference, language profilers, build from source,
  ecosystem map.
- Quickstart is the verified validate path:
  rc profile validate rc-demos/artifacts/request-logger-http.profile.yaml
  -> "runtimeconditions: profile validated".
- Generate section documents the three prerequisites with real error
  strings verified against the linked go-rc-profiler v0.8.0: Go toolchain
  on PATH, --dir must contain a go.mod, and published binding modules
  only (go.mod replace rejected by design with the exact message).
- Example workload uses the published modules
  runtimeconditions.io/x/rc/common@v0.3.0 and .../env@v0.3.0; notes the
  verified current env v0.3.0 dependency-archive SHA-256 mismatch.
- Install paths verified against the org: brew runtimeconditions/tools/rc-cli,
  https://runtimeconditions.io/packages/setup.sh + apt/dnf, npm
  @runtimeconditions/typescript-profiler, PyPI runtimeconditions-profiler.
- All commands/flags checked against --help output of a binary built from
  this branch; existing command tables kept; build-from-source section
  preserves the schema-linker caveat and release-build notes.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@lasomethingsomething
lasomethingsomething marked this pull request as draft November 18, 2026 23:34
"Your first profile" implied the quickstart creates a profile; it only
validates a committed demo one. Heading is now "validate an existing
profile" with a one-line clarification.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@lasomethingsomething
lasomethingsomething deleted the rewrite-readme-user-first-quickstart branch November 19, 2026 17:44
@lasomethingsomething
lasomethingsomething restored the rewrite-readme-user-first-quickstart branch November 19, 2026 17:45
lasomethingsomething and others added 11 commits November 19, 2026 18:59
…/, add CONTRIBUTING.md

- README.md (127 lines): what-it-is + example scenario, Install, Quickstart
  (validate an existing profile), Commands with full table, Documentation
  links, Ecosystem, Contributing, License
- docs/: generating-profiles.md, language-profilers.md, bindings.md,
  build-from-source.md, command-reference.md
- CONTRIBUTING.md: building, layout, testing (gofmt/vet/test -race/mod
  verify per ci.yml), PR expectations

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
… pages

- command-reference.md duplicated the README command table; its --help
  block now lives inline in README Commands
- build-from-source.md is word-identical to the original Build locally +
  CI coverage sections (restored dropped smoke-test PATH sentence)
- restored dropped sentences in generating-profiles.md and bindings.md

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Example scenario links the demo Todos API in rc-demos
- Quickstart validate paragraph rewritten as short sentences
- Install and Commands explanations converted to bullet lists

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Table now lists only the rc profile commands; version/plugins/completion
are covered by the console examples and bullets above it. The --help
block collapses to one line.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The spec repo owns the profile schema (pinned + checksum-verified from
its release assets at build time); state that once at the top link and
drop the repeated spec bullet from the Ecosystem section.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Lead-in labels the console blocks as install-check demos; the table is
now the full command list (version, plugins list, completion rows
restored); bullets only interpret output.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Ecosystem list now states the relationship per repo (linked library,
compiled-in module, PATH add-ons, demos, distribution channels) and
labels ebpf-rc-profiler as legacy/experimental per its own README.
Also: Commands lead-in simplified to "Verify the install:".

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@lasomethingsomething
lasomethingsomething marked this pull request as ready for review November 20, 2026 00:18
Comment thread docs/generating-profiles.md Resolved
Comment thread docs/generating-profiles.md Outdated
Comment on lines +10 to +11
1. **A Go toolchain on `PATH`.** Without one, generation fails with
`exec: "go": executable file not found in $PATH`. `rc` does not download Go for you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be true. I'd be all sorts of sad if it is. The CLI is built to a binary, which includes the Golang profiler. There shouldn't be anything in the distributed profiler (e.g. installed via Homebrew, apt, or yum) that requires the Golang toolchain.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me check it again

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a check (can post to an issue):

The installed rc binary itself needs no Go toolchain. --help, --version, plugins list, and profile validate all run without go on PATH.

But rc profile generate on a Go workload does: the linked profiler shells out to the toolchain to resolve the module graph (go-rc-profiler v0.8.0, extensioncheck/imported.go:96,103,169; go mod download all, go mod verify, go list -mod=readonly -deps -json ./...).

Proof with a binary built from this branch against a module requiring runtimeconditions.io/x/rc/common v0.3.0:

$ /tmp/rc-test profile generate --dir /tmp/myworkload        # go on PATH
apiVersion: runtimeconditions.io/v1alpha1
kind: RuntimeConditionsProfile
...                                                            # exit 0
$ env -i PATH=/usr/bin:/bin /tmp/rc-test profile generate --dir /tmp/myworkload
rc: err: go command required, not found: exec: "go": executable file not found in $PATH   # exit 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that does make sense. Thanks for confirming and investigating. We can leave this as is.

Comment thread docs/generating-profiles.md Resolved
Comment thread docs/generating-profiles.md Resolved
Comment thread docs/generating-profiles.md Resolved
Comment thread docs/language-profilers.md Resolved
Comment thread README.md Resolved

@colinjlacy colinjlacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good first pass. There are some things that I think should be opened issues instead of documented shortcomings. But the overall vibe and guidance to the user is really helpful!

@colinjlacy
colinjlacy merged commit 4c9f7c7 into runtimeconditions:main Nov 21, 2026
4 checks passed
@colinjlacy

Copy link
Copy Markdown
Contributor

Great contribution @lasomethingsomething . Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants